/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class QuestFormDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression idQuestForm;
	
	public QuestFormDetachedCriteria() {
		super(orm.QuestForm.class, orm.QuestFormCriteria.class);
		idQuestForm = new IntegerExpression("idQuestForm", this.getDetachedCriteria());
	}
	
	public QuestFormDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.QuestFormCriteria.class);
		idQuestForm = new IntegerExpression("idQuestForm", this.getDetachedCriteria());
	}
	
	public BabyMonitorDetachedCriteria createBabyMonitorCodSystemCriteria() {
		return new BabyMonitorDetachedCriteria(createCriteria("babyMonitorCodSystem"));
	}
	
	public QuestionDetachedCriteria createQuestionidQuestCriteria() {
		return new QuestionDetachedCriteria(createCriteria("questionidQuest"));
	}
	
	public QuestForm uniqueQuestForm(PersistentSession session) {
		return (QuestForm) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public QuestForm[] listQuestForm(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (QuestForm[]) list.toArray(new QuestForm[list.size()]);
	}
}

